package com.doctcloud.hisinfo.api;

import com.doctcloud.common.core.constant.ServiceNameConstants;
import com.doctcloud.common.core.domain.R;
import com.doctcloud.hisinfo.api.factory.RemoteHisInpAdmServiceFallbackFactory;
import com.doctcloud.hisinfo.histable.domain.inpadm.PatsInHospitalDo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "remoteAdmInpService", value = ServiceNameConstants.HIS_INPADM_SERVICE, fallbackFactory = RemoteHisInpAdmServiceFallbackFactory.class)
public interface RemoteHisInpAdmService {
    @GetMapping("/inpadm/patsinhospital/all")
    public R<List<PatsInHospitalDo>> listpatsinhospital();
}
